{include file="public:header" /}
<!--相册列表-->
<div class="pad_lr_10" >
    <form name="searchform" action="{:url('index')}" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="house_id" value="{$house_id}" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                &nbsp;&nbsp;当前编辑是&nbsp;&nbsp;
                <a class="red" title="点击标题可刷新当前页面" href="{:url('index',['house_id'=>$house_id,'menuid'=>$menuid])}"><b>{$house_title}</b></a>&nbsp;&nbsp;图片信息&nbsp;&nbsp;
                <a class="exit_sub" href="{:url('House/index',['menuid'=>458])}">返回楼盘列表</a>&nbsp;&nbsp;
                所属栏目：
                {:getLinkMenu(10,'cate_id','select',$search['cate_id'])}
                &nbsp;&nbsp;状态:
                <select name="status">
                <option value="">-全部-</option>
                <option value="1" {<if condition="$search.status eq '1'"}selected="selected"{/if}>启用</option>
                <option value="0" {if condition="$search.status eq '0'"}selected="selected"{/if}>禁用</option>
                </select>
                &nbsp;&nbsp;关键词 :
                <input name="keyword" type="text" class="input-text" size="15" value="{$search.keyword}" />
                <input type="submit" name="search" class="btn" value="搜索" />
                <span style="color:green;">排序数字越小越靠前</span>
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:url('ajaxEdit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="title">图片名称</span></th>
                <th width="80"><span data-tdtype="order_by" data-field="cate_id">所属栏目</span></th>
                <th width=120><span data-tdtype="order_by" data-field="create_time">添加时间</span></th>
                <th align="60"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="status">状态</span></th>
                <th width="80">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="val"}
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="{$val.id}" class="tdedit">{$val.title}</span>{notempty name="val['img']"}<span class="attachment_icon J_attachment_icon" file-type="image" file-rel="{$val.img}"><img src="__IMG__/image_s.gif" /></span>{/notempty}</td>
                <td align="center">{$val.cate_name}</td>
                <td align="center">{$val.create_time|date='Y-m-d H:i:s',###}</td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/toggle_{if condition="$val.status eq 0"}disabled{else/}enabled{/if}.gif" /></td>
                <td align="center">
                    {:rights($options,$val['id'],$val['title'],$menuid)}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('delete')}" data-name="id" data-msg="确定要删除所选图片么" value="删除" />
        <div id="pages">{$pages}</div>
    </div>
    </div>
</div>
{include file="public:footer" /}

</body>
</html>
